package services;

import entities.Food;
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import sessions.FoodFacadeLocal;

/**
 * Manage the Food bean.
 * @author momsse
 */
@Stateless
@Remote(FoodServiceRemote.class)
public class FoodService implements FoodServiceRemote {

    @EJB
    private FoodFacadeLocal foodFacade;

    @Override
    public Food addFood(Food food) {
        return foodFacade.create(food);
        //return null;
    }

    @Override
    public int returnFive() {
        return 8;
    }
}
